<ytata:bbs listname="bbs" type="$_GET['type']"  uid="$uid" num="5"  startrow="$startrow"    />
<volist name="bbs.list" id="li">
<div class="ulist" onClick="location.href='{$li.url}'" id="list_{$li.id}">

		
        <div class="titmores">
		<div class="hs1">
		<span class="t">{$li.adduser.nickname}</span>&nbsp;&nbsp;<span class="d">{$li.addtime|formatdate}</span></div>
			  <div class="more J_more" id="{$li.id}" onClick="event.cancelBubble = true"></div>
		</div>

		<div class="txt font14">{$li.content_cut} </div>
		<div class="date font12">浏览 {$li.click}&nbsp;&nbsp;赞:{$li.count_praise}&nbsp;&nbsp;回复 {$li.replycount}</div>
</div>
  
 
 </volist>
 <script>
$('.J_more').off().on('click',function(e){
			var id=$(this).attr('id');
			var $Scroll = new UpScroll({
				maskClose: true,
				showCancel: true
			});
			$Scroll.setContent(['删除']);
			$Scroll.show();
			$Scroll.getList(1).on('click', function() {
					$(document).dialog({
					type : 'confirm',
					closeBtnShow: false, 
					content: '确定删除吗?',
					onClickConfirmBtn: function(){
									var loading=toast_loading();
									ajax_url="{:U('bbs_del')}";
									$.getJSON(ajax_url, {id: id}, function (result) {
										if (result.code == 1) {
											$Scroll.hide();
											$('#list_'+id).remove();
											toast(result.msg,1,loading);
										} else  {
											$Scroll.hide();
											toast(result.msg,0,loading);
										}
									});
					} 
			});
			
			$Scroll.hide();
			});

		
});
	  

    
</script>
<empty name="bbs.list"><div class="empty font10">木有可显示的数据喔！</div></empty>
<empty name="bbs.list"><!--empty --></empty>